<?php if(!defined('IN_FANWE')) exit('Access Denied'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><?php echo formatPageSeo(); ?><link rel="icon" href="<?php echo $_FANWE['site_root'];?>favicon.ico" type="image/x-icon" />
<script src="./public/js/jquery.js" type="text/javascript"></script>
<?php 
$default_js[] = './public/js/jquery.cookie.js';
                $default_js[] = './public/js/jquery.easing.js';
$default_js[] = './public/js/jquery.lazyload.js';
$default_js[] = './public/js/base.js';
 ?>
<script src="<?php echo scriptParse($default_js); ?>" type="text/javascript"></script>
<?php 
$current_css[] = './tpl/css/base.css';
$current_css[] = './tpl/css/lightbox.css';
$current_css[] = './public/js/jqueryui/jquery.ui.css';
 ?>
<link rel="stylesheet" type="text/css" href="<?php echo cssParse($current_css); ?>" media="all"/><?php if(is_array($css_list)) { foreach($css_list as $css) { ?><link rel="stylesheet" type="text/css" href="<?php echo cssParse($css['url']); ?>"<?php if(!empty($css['media'])) { ?> media="<?php echo $css['media'];?>"<?php } ?> />
<?php } } ?>
<script type="text/javascript">
var SITE_PATH = '<?php echo $_FANWE['site_root'];?>';
var SITE_URL = '<?php echo $_FANWE['site_url'];?>';
var TPL_PATH = '<?php echo TPL_PATH;?>';
var PUBLIC_PATH	 = '<?php echo PUBLIC_PATH;?>';
var MODULE_NAME	 = '<?php echo MODULE_NAME;?>';
var ACTION_NAME	 = '<?php echo ACTION_NAME;?>';
var COOKIE_PRE = "<?php echo $_FANWE['config']['cookie']['cookie_pre'];?>";<!--dynamic dynamicScript-->jQuery(function(){
        $(window).scroll(function(){
            if($(window).scrollTop() > 39){
               $("#header").css({"position":"fixed"});
            }else{
                $("#header").css({"position":"relative"});
            }
            
        });
        });
</script>
<?php if(isset($_FANWE['cache']['business']['taobao'])) { ?>
<script src="http://a.tbcdn.cn/apps/top/x/sdk.js?appkey=<?php echo $_FANWE['cache']['business']['taobao']['app_key'];?>" type="text/javascript"></script>
<?php } ?>
</head>
<body>
<div id="header" class="wrapper_width_100" style="position: relative; ">
 <div style="width:960px;margin-left: auto;margin-right: auto">
<?php if(MODULE_NAME != 'Sale' && MODULE_NAME != 'Zdm') { ?><a class="logo" href="<?php echo FU('index',array()); ?>"><img src="<?php echo $_FANWE['site_root'];?><?php echo $_FANWE['setting']['site_logo'];?>" height="25" /></a><div class="head_nav"><?php } else { ?><div class="head_nav sub_site"><?php } ?>

<div class="hn_item"><a href="<?php echo FU('index',array()); ?>"<?php if(MODULE_NAME == 'Index') { ?> class="c"<?php } ?>><span>首页</span></a></div>
<?php 
$g_r_cate = $_FANWE['cache']['goods_category']['root'];
$g_r_cate = &$_FANWE['cache']['goods_category']['all'][$g_r_cate];
 ?>
            
<div class="hn_item down_link" rel="hn_cates">
            <?php if(MODULE_NAME == 'Sale') { ?><a href="<?php echo FU('sale/index',array()); ?>" class="c"><span>特价疯抢
            <?php } elseif(MODULE_NAME == 'Zdm') { ?><a href="<?php echo FU('zdm/index',array()); ?>" class="c"><span>值得买
            <?php } else { ?>
            <a href="<?php echo FU('book/shopping',array()); ?>"<?php if(MODULE_NAME == 'Book' || MODULE_NAME == 'Look' || MODULE_NAME == 'Dapei') { ?> class="c"<?php } ?>><span><?php echo $g_r_cate['cate_name'];?>
            <?php } ?>
            <small class="down">&nbsp;</small></span></a></div>
            
<div class="hn_item"><a href="<?php echo FU('album',array()); ?>"<?php if(MODULE_NAME == 'Album') { ?> class="c"<?php } ?>><span>杂志社</span></a></div>
<div class="hn_item down_link" rel="hn_shops"><a href="<?php echo FU('shop',array()); ?>"<?php if(MODULE_NAME == 'Shop') { ?> class="c"<?php } ?>><span>好店<small class="down">&nbsp;</small></span></a></div>
<dl class="down_dl" rel="hn_cates" type="center" left="6">
<?php if(MODULE_NAME == 'Sale'|| MODULE_NAME == 'Zdm') { ?><dd><a href="<?php echo FU('book/shopping',array()); ?>">逛街啦!</a></dd><?php } if(is_array($_FANWE['cache']['goods_category']['index'])) { foreach($_FANWE['cache']['goods_category']['index'] as $h_i_cate) { ?><?php $h_i_cate = $_FANWE['cache']['goods_category']['all'][$h_i_cate]; ?><dd><a href="<?php echo FU('book/cate',array("cate"=>$h_i_cate['cate_code'])); ?>"><?php echo $h_i_cate['cate_name'];?></a></dd>
<?php } } ?>
<dd class="dl_line"></dd>
<dd><a href="<?php echo FU('look/index',array()); ?>">晒货</a></dd>
<dd><a href="<?php echo FU('dapei/index',array()); ?>">搭配</a></dd>
<?php if(MODULE_NAME != 'Sale') { ?><dd class="im"><a href="<?php echo FU('sale/index',array()); ?>" target="_blank">特价</a></dd><?php } if(MODULE_NAME != 'Zdm') { ?><dd class="im"><a href="<?php echo FU('zdm/index',array()); ?>" target="_blank">值得买</a></dd><?php } ?>
</dl>
<dl class="down_dl" rel="hn_shops" type="center" left="6">
<dd><a href="<?php echo FU('exchange',array()); ?>">试用</a></dd>
<dd><a href="<?php echo FU('group/index',array()); ?>">小组</a></dd>
<dd><a href="<?php echo FU('daren/index',array()); ?>">达人</a></dd>
<dd><a href="<?php echo FU('mailrss/index',array()); ?>">订阅</a></dd>
</dl>
</div>
<div class="head_user"><!--dynamic getUserInfo--><div class="mobile_down">
<strong>下载客户端</strong>
<a class="iphone_down" href="<?php echo $_FANWE['setting']['app_down_url'];?>" target="_blank" title="iPhone客户端">iphone客户端</a>
<a class="android_down" href="<?php echo $_FANWE['setting']['apk_down_url'];?>" target="_blank" title="Android客户端">Andioid客户端</a>
</div>
<form action="<?php echo FU('search',array()); ?>" method="get">
<input type="text" name="keyword" class="search_txt" value="" tooltip="请输入关键字"/>
<input type="submit" value="搜索" class="search_btn" />
</form>
</div>
<script type="text/javascript">
var HEADER_DOWNS = new Object();
var HEADER_DOWNS_TIMEOUT;
var USER_DL_TIMEOUT,USER_DL_W = 0,USER_DL_H = 0,UMSG_DL_TIMEOUT,UMSG_DL_W = 0,UMSG_DL_H = 0,UMSG_DL_L = 0;
jQuery(function($){
$("#header .down_link").hover(function(){
$("#header .down_link").removeClass('down_hover');
$("#header .down_dl").hide();
clearTimeout(HEADER_DOWNS_TIMEOUT);
$(this).addClass('down_hover');
var rel = $(this).attr('rel');
var dl = $(".down_dl[rel='"+rel+"']");
var type = dl.attr('type');
dl.css({"visibility":"hidden","display":"block"});
if(!HEADER_DOWNS[rel])
{
HEADER_DOWNS[rel] = new Object();
HEADER_DOWNS[rel].w = 0;
HEADER_DOWNS[rel].h = 0;
HEADER_DOWNS[rel].l = 0;
HEADER_DOWNS[rel].t = 33;
}

if(HEADER_DOWNS[rel].w == 0)
{
HEADER_DOWNS[rel].w = dl.width();
if(($(this).width() > HEADER_DOWNS[rel].w) || type == 'center')
HEADER_DOWNS[rel].w = $(this).width();

var minwidth = parseInt(dl.attr('minwidth'));
if(!isNaN(minwidth) && minwidth > 0 && HEADER_DOWNS[rel].w < minwidth)
{
HEADER_DOWNS[rel].w = minwidth;
}
}

if(HEADER_DOWNS[rel].h == 0)
HEADER_DOWNS[rel].h = dl.height();


if(HEADER_DOWNS[rel].l == 0)
{
var left = parseInt(dl.attr('left'));
if(isNaN(left))
left = 0;

switch(type)
{
case 'center':
HEADER_DOWNS[rel].l = $(this).position().left + ($(this).width() - HEADER_DOWNS[rel].w) / 2 + left;
break;

case 'left':
HEADER_DOWNS[rel].l = $(this).position().left + $(this).width() - HEADER_DOWNS[rel].w  + left;
HEADER_DOWNS[rel].t = 34;
break;

case 'right':
HEADER_DOWNS[rel].l = $(this).position().left + left;
HEADER_DOWNS[rel].t = 34;
break;
}
}

dl.css({"height":"0","width":HEADER_DOWNS[rel].w,"left":HEADER_DOWNS[rel].l,"top":HEADER_DOWNS[rel].t,"visibility":"visible"});
dl.animate({height:HEADER_DOWNS[rel].h},{easing:"easeInQuad",queue:false,duration:100});
},function(){
var fun = function(){
$("#header .down_link").removeClass('down_hover');
$("#header .down_dl").hide();
};
HEADER_DOWNS_TIMEOUT = setTimeout(fun,500);
});

$("#header .down_dl").hover(function(){
clearTimeout(HEADER_DOWNS_TIMEOUT);
},function(){
$("#header .down_link").removeClass('down_hover');
$("#header .down_dl").hide();
});
});
</script>
</div>
</div>
<div class="clear"></div><!--dynamic getLoginScroll--><div class="wrapper"><!--dynamic advLayoutName args=头部广告位,,--></div>
